//
//  BLDouyuSubListCell.swift
//  BLLiveTelecast
//
//  Created by BigL055 on 16/6/11.
//  Copyright © 2016年 bigL.liveTelecast.com. All rights reserved.
//

import UIKit

class BLDouyuSubListCell: UICollectionViewCell {

    @IBOutlet weak var iconButton: BLIconButton!
    
    var subListItem = BLDouyuRoomDetalModal(){
        didSet{
            iconButton.userInteractionEnabled = false
            iconButton.iconImageView?.sd_setImageWithURL(NSURL(string: subListItem.game_icon!), completed: { (image, _, _, _) in
                
                let iconImage = UIImage.bl_imageWithRoundIcon(image)
                self.iconButton.iconImageView?.image = iconImage
                
            })
            
            
            iconButton.iconNameLabel?.text = subListItem.game_name
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

}
